package com.fyyg.service;

import com.fyyg.dal.TSysOrganizationMapper;
import com.fyyg.interfaces.TSysOrganizationService;
import com.fyyg.model.TSysOrganization;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("sysOrganizationService")
public class TSysOrganizationServiceImpl implements TSysOrganizationService{
	
	@Resource
	private TSysOrganizationMapper organizationMapper;

	@Override
	public TSysOrganization selectByPrimaryKey(Integer id) {
		return organizationMapper.selectByPrimaryKey(id);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return organizationMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(TSysOrganization organization) {
		return organizationMapper.insert(organization);
	}

	@Override
	public int updateByPrimaryKeySelective(TSysOrganization organization) {
		return organizationMapper.updateByPrimaryKeySelective(organization);
	}

	@Override
	public List<TSysOrganization> findList(Integer orgId) {
		return organizationMapper.findList(orgId);
	}

	@Override
	public int deleteByIdAndPid(Integer id) {
		return organizationMapper.deleteByIdAndPid(id);
	}

	@Override
	public int deleteOrganization(Map<String, Object> parameterMap) {
		return organizationMapper.deleteOrganization(parameterMap);
	}

	@Override
	public String queryChildrenId(Integer orgId) {
		return organizationMapper.queryChildrenId(orgId);
	}

}
